﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace phoneApp
{
    class Run
    {
        public DateTime startDate { get; set; }
        public DateTime endDate { get; set; }
        public Track track { get; set; }

        //static ServiceReference2.Service1Client client = new ServiceReference2.Service1Client();

        public Run()
        {
            this.startDate = DateTime.Now;
            this.track = new Track(startDate.ToString());
            /*client.getStringAsync(1);

            client.getStringCompleted += new EventHandler
                <ServiceReference2.getStringCompletedEventArgs>(client_getStringCompleted);*/
        }

        public void addPoint(float posX, float posY) 
        {
            track.points.Add(new Point(posX, posY, track.points.Count + 1));
        }
        /*
        private void client_getStringCompleted(object sender, ServiceReference2.getStringCompletedEventArgs e)
        {
            String lala = e.Result.ToString();
        }*/
    }
}
